package com.lemon.core.sms.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 阿里云短信配置
 *
 * @author pan
 * @since 2017-12-06
 */
@Data
@Configuration
@ConfigurationProperties(prefix = AliyunSmsProperties.PREFIX)
public class AliyunSmsProperties {

    public static final String PREFIX = "sms.aliyun";

    /**
     * 短信API产品名称
     */
    private String product = "Dysmsapi";

    /**
     * accessKeyId
     */
    private String accessKey;

    /**
     * accessKeySecret
     */
    private String keySecret;

    /**
     * 短信API产品域名
     */
    private String domain = "dysmsapi.aliyuncs.com";

    /**
     * 区域标识
     */
    private String regionId = "cn-hangzhou";

    /**
     * 短信模板编码
     */
    private String templateCode;

    /**
     * 短信签名
     */
    private String signName;

}
